﻿///2012.5.10-----------------------------
///汪定新
///--------------------------------------

//增加
var fnCustomAdd = function () {
    document.getElementById("EditUIWindow").src = "AutoLoadForm.aspx?r=" + Math.random() + "&entity=" + const_EditEntity;
    YAHOO.example.container.dialog1.show();
}
//编辑
var fnCustomEdit = function () {
    document.getElementById("EditUIWindow").src = "AutoLoadForm.aspx?r=" + Math.random() + "&entity=" + const_EditEntity + "&id=" + record.getData(const_entityID);
    YAHOO.example.container.dialog1.show();
}
//

if (typeof ($) != "undefined") {
    $(document).ready(function () {
        var id = ""; // parent.parent.getPar1('id'); //getPar(parent.location.href, "id");
        var formId = getPar(location.href, "formid")
        if (formId == '8A549456-FDD9-42ED-A523-305FDE5409C1')//离职
        {
            id = parent.parent.getPar1('id');
        }
        else if (formId = '6644274D-23D0-4C31-8256-531559F51A0A')//转正
        {
            id = getPar(parent.location.href, "id");
        }
        instance[0].EmployeeID = id;
    });
}

var fnCheckData = function () {
}